<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Вход</title>
    {% load static %}
    <link rel="stylesheet" href="{% static 'css/style.css'%}" type="text/css">
</head>
<body>
    <h1>Выберите отдел:</h1>
        {% for el in names %}
            <form method="POST" action="/button-click/{{ el.title }}/">
                {% csrf_token %}
                <button type="submit">{{ el.title }}</button>
            </form>
        {% endfor %}
</body>

</html>